package system

import (
	"github.com/gogf/gf/v2/frame/g"
	"server/api"
)

type LogHttpListReq struct {
	g.Meta `path:"/system/log/httpLogs" tags:"系统管理-日志" method:"GET" summary:"http日志" description:"http日志""`
	api.PagerReq
	Method  string `dc:"方法"`
	Route   string `dc:"路由"`
	TraceId string `dc:"链路ID"`
}
type LogHttpListRes struct {
	api.PagerRes
}

type LogFileReq struct {
	g.Meta `path:"/system/log/files" tags:"系统管理-日志" method:"GET" summary:"系统运行日志" description:"系统运行日志"`
}
type LogFileRes struct {
	Data interface{} `json:"data"`
}

type LogFileContentReq struct {
	g.Meta      `path:"/system/log/fileContent" tags:"系统管理-日志" method:"GET" summary:"系统运行日志内容" description:"系统运行日志内容"`
	LogFilePath string `v:"required" json:"logFilePath" dc:"日志文件目录"`
	LogStart    int64  `v:"required" json:"logStart" dc:"读取的日志起始行"`
	LogEnd      int64  `v:"required" json:"logEnd" dc:"读取的日志结束行"`
}
type LogFileContentRes struct {
	Data interface{} `json:"data"`
}
